package com.ruoyi.management.mqtt;


import com.ruoyi.management.dao.mapper.AmmeterMapper;
import com.ruoyi.management.dao.mapper.AmmeterResultMapper;
import com.ruoyi.management.pojo.po.AmmeterResultPo;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Component
@Data
public class MqttContext {

    @Autowired
    private AmmeterResultMapper ammeterResultMapper;

    @Autowired
    private AmmeterMapper ammeterMapper;

    @Autowired
    @Qualifier("managementRedisTemplate")
   private RedisTemplate<String , AmmeterResultPo> redisTemplate;

}
